package cn.chitanda.weather.data.weather

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize

@Entity
@Parcelize
data class Basic(
    @ColumnInfo(name = "location") @SerializedName("location") val location: String,
    @PrimaryKey @ColumnInfo(name = "cid") @SerializedName("cid") val cid: String,
    @ColumnInfo(name = "parent_city") @SerializedName("parent_city") val parent_city: String,
    @ColumnInfo(name = "admin_area") @SerializedName("admin_area") val admin_area: String
) : Parcelable